{% extends "core/base.html" %}

{% block contenido %}
<h4>Bienvenido a CampusMovilPro </h4>
<form action="/core/enter/" method="post">
  {% csrf_token %}
	<p>
	  <label for="usuario">Usuario:</label>	  
	  <input type="text" name="usuario" value="{{ usuario  }}" />
	  {% if form.usuario.errors %}
	    {% for error in form.usuario.errors %}
	    <span class="error">{{ error }}</span>
	    {% endfor %}
	  {% endif %}
	</p>
	<p>
	  <label for="password">Contrase&ntilde;a</label>
	  <input type="password" name="password" value="{{ password}}" />
	  {% if form.password.errors %}
	    {% for error in form.password.errors %}
	    <span class="error">{{ error }}</span>
	    {% endfor %}
	  {% endif %}
	</p>
	<p>
	  {% if fallo_en_login %}
	    <span class="error">Credenciales inv&aacute;lidas</span>
	  {% endif %}
	  <input type="submit" value="Entrar" /> 	  
	</p>
</form>
{% endblock %}
